package com.suneee.store.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;

@Entity
@Table(name = "t_shop_stock")
public class ShopStock implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2250023234765647064L;

	/**
	 * 库存id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "stock_id", nullable = false)
	private Integer stockId;

	/**
	 * 平台spu
	 */
	@Column(name = "spu_id", nullable = false)
	private Integer spuId;

	/**
	 * sku_id
	 */
	@Column(name = "sku_id", nullable = false)
	private Integer skuId;

	/**
	 * 渠道spu
	 */
	@Column(name = "channel_spu")
	private String channelSpu;

	/**
	 * 渠道sku
	 */
	@Column(name = "channel_sku")
	private String channelSku;

	/**
	 * 店铺编码
	 */
	@Column(name = "shop_id")
	private Integer shopId;

	/**
	 * 库存
	 */
	@Column(name = "stock")
	private Integer stock;

	/**
	 * 预警库存
	 */
	@Column(name = "warning_stock")
	private Integer warningStock;

	/**
	 * 销售价格
	 */
	@Column(name = "price")
	private Float price;

	/**
	 * 状态
	 */
	@Column(name = "status")
	private Boolean status;

	@Column(name = "create_user")
	private Integer createUser;

	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	private Timestamp createTime;

	@Column(name = "modify_user")
	private Integer modifyUser;

	@Column(name = "modify_time")
	private Timestamp modifyTime;

	public Integer getStockId() {
		return stockId;
	}

	public void setStockId(Integer stockId) {
		this.stockId = stockId;
	}

	public Integer getSpuId() {
		return spuId;
	}

	public void setSpuId(Integer spuId) {
		this.spuId = spuId;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	public String getChannelSpu() {
		return channelSpu;
	}

	public void setChannelSpu(String channelSpu) {
		this.channelSpu = channelSpu;
	}

	public String getChannelSku() {
		return channelSku;
	}

	public void setChannelSku(String channelSku) {
		this.channelSku = channelSku;
	}

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getWarningStock() {
		return warningStock;
	}

	public void setWarningStock(Integer warningStock) {
		this.warningStock = warningStock;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Integer getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getModifyUser() {
		return modifyUser;
	}

	public void setModifyUser(Integer modifyUser) {
		this.modifyUser = modifyUser;
	}

	public Timestamp getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

}
